<% iam_group_policies.each do |policy| -%>
resource "aws_iam_group_policy" "<%= unique_name(policy) %>" {
    name   = "<%= policy.policy_name %>"
    group  = "<%= policy.group_name %>"
    policy = <<POLICY
<%= prettify_policy(policy.policy_document, unescape: true) %>
POLICY
}

<% end -%>
